using Phoenix.Frames;
using Phoenix.Framework;

namespace Phoenix.ActionResults
{
    public class NavigateBackActionResult : ActionResult, IHaveInvokeCompletedSteps
    {
        public NavigateBackActionResult(ControllerActionContext context) : base(context)
        {
        }

        public override void Execute(IContentFrame targetFrame)
        {
        }

        public void InvokeComplete()
        {
            Context.NavigationFrame.NavigateBack();
        }
    }
}